﻿#include "weather.h"

#include <QApplication>
#include <QtCore>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    // 获取Qt的版本号
    QString qtVersion = QString::fromLatin1(qVersion());
    if (qtVersion.startsWith(QStringLiteral("5.15.2"))) {
        qDebug() << "This is Qt 5.15.2";

    } else if (qtVersion.startsWith(QStringLiteral("5.14.2"))) {
        qDebug() << "This is Qt 5.14.2";
    } else {
        qDebug() << "Unknown Qt version: " << qtVersion;
    }
    Weather w;
    w.show();
    return a.exec();
}
